/*
 * @Date: 2023-11-16 17:44:24
 * @LastEditors: 春贰
 * @gitee: https://gitee.com/chun22222222
 * @github: https://github.com/chun222
 * @Desc: 
 * @LastEditTime: 2023-11-17 16:38:35
 * @FilePath: \go-ezcode-admin\html\js\common.js
 */
export const isLogin = () => {
    //判断是否登陆
    if(getToken() == null){
        window.location.href = './login.html'
        return false
    }
    return true    
}

export const getToken = () => {
    return localStorage.getItem('token')
}